package com.google.code.openperfmon.web;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.xml.DOMConfigurator;

import com.google.code.openperfmon.db.DBManager;

public class ContextListener implements ServletContextListener {
	public void contextDestroyed(ServletContextEvent sce) {
	}
	
	public void contextInitialized(ServletContextEvent sce) {
		DOMConfigurator.configure(ContextListener.class.getResource("/log4j-cfg.xml"));
		DBManager.updateSchema();
	}
}
